package part08_外观模式_家庭影院;

/**
 * @ClassName: DVDPlayer
 * @Author: AllenSun
 * @Date: 2020/3/2 21:50
 */
public class Screen {
    //使用一个单例模式（饿汉式）
    private static Screen instance=new Screen();

    public static Screen getInstance(){
        return instance;
    }

    /**
     * @MethodName: up
     * @Author: AllenSun
     * @Date: 2020/3/2 21:51
     */
    public void up(){
        System.out.println("屏幕打开升起");
    }
    /**
     * @MethodName: down
     * @Author: AllenSun
     * @Date: 2020/3/2 21:55
     */
    public void down(){
        System.out.println("屏幕关闭下降");
    }
}
